package com.atguigu.aiproject.service;

import com.atguigu.aiproject.entity.UserLikeCreation;
import com.atguigu.aiproject.vo.CreationDetailsVO;
import com.atguigu.aiproject.vo.LikeResultVO;
import com.baomidou.mybatisplus.extension.service.IService;

public interface CreationLikeService extends IService<UserLikeCreation> {
    boolean existsByUserIdAndCreationId(Integer currentUserId, Integer creationId);

    void deleteUserLike(Integer userId, Integer creationId);

    LikeResultVO toggleLike(int id);

    void setCurrentUserLikeStatus(CreationDetailsVO detail, Integer creationId);
}
